#ifndef PASSWORD_INPUT_H
#define PASSWORD_INPUT_H

#include <QDialog>

namespace Ui {
    class Password_input;
}

class Password_input : public QDialog
{
    Q_OBJECT

public:
    explicit Password_input(QDialog *parent = 0);
    ~Password_input();
 Ui::Password_input *ui;
 void setpassword( QString password);
 void setpasswordgoup( QString  password1,QString  password2,QString  password3);
 void cancel_password_mode( );
 bool password_check(QString password,bool block);
 int return_value();
 uint whichpassword;
 bool password_right;
 bool enter;
 QString  textword;

private:

 QString  password;
 QString  passwordgoup[3];
 QString  display;
 bool password_mode;
 bool password_error;
 bool  goup;
 void Display(int);

private slots:
    void on_num_0_clicked();
    void on_num_1_clicked();
    void on_num_2_clicked();
    void on_num_3_clicked();
    void on_num_4_clicked();
    void on_num_5_clicked();
    void on_num_6_clicked();
    void on_num_7_clicked();
    void on_num_8_clicked();
    void on_num_9_clicked();

  void on_dot_clicked();
  void on_clear_clicked();
  void on_esc_clicked();
  void on_enter_clicked();
  void on_negative_clicked();

};

#endif // PASSWORD_INPUT_H
